usb:gadget:f_thor: code cleanup in function download_tail()
authorPrzemyslaw Marczak <[email protected]>
Fri, 18 Apr 2014 07:48:24 +0000 (09:48 +0200)
committerMarek Vasut <[email protected]>
Wed, 30 Apr 2014 08:30:57 +0000 (10:30 +0200)
commitadfc17bf09ba67cff11472ffa58fc0208defa29c
treef1a430da82229f30eccedb91fd2f07682bfd40e3
parent08a98b89df39d25a1260f390c19be4649dfd303d
usb:gadget:f_thor: code cleanup in function download_tail()

In thor's download_tail() function, dfu_get_entity() is called
before each dfu_write() call and the returned entity pointers
are the same. So dfu_get_entity() can be called just once and
this patch changes this.

Signed-off-by: Przemyslaw Marczak <[email protected]>
Cc: Lukasz Majewski <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Heiko Schocher <[email protected]>
Cc: Tom Rini <[email protected]>
drivers/usb/gadget/f_thor.c